/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package auditenergetic;

import java.awt.Stroke;
import java.math.MathContext;


public class NCIC {

    private double Qh;
    private final double QL = 270116.36; //pierderile de caldura ale cladirii [kwh]
    private final double Qg = 65885.58; //aporturile totale de caldura [kwh]
    private final double a = 4.85; //parametru numeric care depinde de constanta de timp

    public double Compute_Y()
    {
        return Qg/QL;
    }
    public double Compute_N()
    {
        return (1-Math.pow(Compute_Y(), a))/(1-Math.pow(Compute_Y(), a+1));
    }
    public double Compute_Qh()
    {
        return Qh = QL - Compute_N() * Qg;
    }
}
